import request from '@/utils/request'

const user = {
 getInfo(token) {
  return request({
    url: '/vue-element-admin/user/info',
    method: 'get',
    params: { token }
  })
},




login(data) {
  return request({
    url: '/admin/service/sys_login',
    method: 'post',
    data
  })
},
sys_person_list(data){
  return request({
    url: '/admin/service/sys_person_list',
    method: 'post',
    data
  })
},
sys_pass_list(data){
  return request({
    url: '/admin/service/sys_pass_list',
    method: 'post',
    data
  })
},
person_age_counting(data){
  return request({
    url: '/admin/service/person_age_counting',
    method: 'post',
    data
  })
},

people_type_counting(data){
  return request({
    url: '/admin/service/people_type_counting',
    method: 'post',
    data
  })
},
show_home_person(data){
  return request({
    url: '/admin/service/show_home_person',
    method: 'post',
    data
  })
},
people_flow_counting(data){
  return request({
    url: '/admin/service/people_flow_counting',
    method: 'post',
    data
  })
},

show_person_sign_statistics(data){
  return request({
    url: '/admin/service/show_person_sign_statistics',
    method: 'post',
    data
  })
},
domicile(data){
  return request({
    url: '/admin/service/domicile',
    method: 'post',
    data
  })
},
sys_pass_statistics(data){
  return request({
    url: '/admin/service/sys_pass_statistics',
    method: 'post',
    data
  })
},
sys_pass_day_statistics(data){
  return request({
    url: '/admin/service/sys_pass_day_statistics',
    method: 'post',
    data
  })
},
home_person_statistics(data){
  return request({
    url: '/admin/service/home_person_statistics',
    method: 'post',
    data
  })
},
}

export default user;